package com.example.easyexcel.excelOld.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@ColumnWidth(value = 28) // 设置列宽
public class ExportVo {
    @ExcelProperty(value = "账号",index = 0)
    private String account;
    @ExcelProperty(value = "姓名",index = 1)
    private String userName;
    @ExcelProperty(value = "密码",index = 2)
    @NotNull(message = "密码不能为空")
    private String passWord;
}
